]> dgit.raspbian.org Git - gnome-shell.git/commit
iconGrid/iconGrid: Wait for icon sizes before running spring animation
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Wed, 2 Dec 2020 20:43:13 +0000 (17:43 -0300)
committerMarge Bot <marge-bot@gnome.org>
Wed, 2 Dec 2020 22:43:04 +0000 (22:43 +0000)
commitb730875012cabc4cf4ffecb869266b8a76ea64cc
tree9294dba4debde0cce0bb8346c9c9d8dfb2586342
parent10d91b52e7c3c046e6f4a16848239c80696b8dfc
iconGrid/iconGrid: Wait for icon sizes before running spring animation

To run the spring animation, IconGrid uses the transformed position and size
of the icons. This works okay when IconGridLayout doesn't need to update the
icon sizes, but looks bad when IconGridLayout selects a different icon size.

Wait for the icon sizes to be recalculated, and the icons  beallocated, before
running the spring animation. If no icon size update is pending, run the spring
animation directly.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1518>
js/ui/iconGrid.js